//
//  File.swift
//  OTOpusFrameWork
//
//  Created by gzz on 2025/10/30.
//

import XCTest
@testable import OTOpusFrameWork
import Alamofire  // 如需使用远程库

final class OTOpusFrameWorkTests: XCTestCase {

    func testAddFunction() {
        let result = OTOpusFrameWork.add(2, 3)
        XCTAssertEqual(result, 5, "加法计算错误")
    }
    
    // 测试远程库（示例：测试Alamofire基础功能）
    func testRemoteLibrary() {
        let expectation = self.expectation(description: "Alamofire请求测试")
        AF.request("https://httpbin.org/get").response { response in
            XCTAssertNotNil(response.data, "远程请求失败")
            expectation.fulfill()
        }
        waitForExpectations(timeout: 5, handler: nil)
    }
}
